.class public Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;
.super Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

# interfaces
.implements Ljava/util/Observer;


# instance fields
.field protected a:Z

.field private b:Landroid/widget/EditText;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/widget/ImageView;

.field private i:Landroid/widget/LinearLayout;

.field private s:Z

.field private t:Landroid/content/Context;

.field private u:Ljava/util/ArrayList;

.field private v:Ljava/util/ArrayList;

.field private w:Ljava/util/List;

.field private x:Ljava/lang/String;

.field private y:Landroid/view/View;

.field private z:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 10

    const v4, 0x7f020077

    const/4 v2, 0x1

    const/high16 v3, 0x41800000    # 16.0f

    const/4 v7, 0x0

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-boolean v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->s:Z

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->w:Ljava/util/List;

    iput-boolean v7, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->a:Z

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    const-string/jumbo v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f030068

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c0083

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->e:Landroid/view/View;

    const v0, 0x7f0c005a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->f:Landroid/view/View;

    const v0, 0x7f0c02c9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->i:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const v0, 0x7f0c02c2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    const v0, 0x7f0c02c3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->y:Landroid/view/View;

    const v0, 0x7f0c02c5

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->g:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    const v0, 0x7f0c02c4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    const v0, 0x7f0c02c6

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->z:Landroid/view/View;

    const v0, 0x7f0c02c8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->h:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    const v0, 0x7f0c02c7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->g:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/l;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/l;-><init>(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->h:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/m;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/m;-><init>(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz p2, :cond_3

    sget-object v0, Lcom/fiberhome/gaea/client/base/g;->customText:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v1

    const/4 v2, 0x6

    invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v2

    const/4 v3, 0x2

    const v4, -0xe5e5e6

    invoke-virtual {v0, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v3

    const/4 v4, 0x4

    const v5, -0x333334

    invoke-virtual {v0, v4, v5}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v4

    const/4 v5, 0x7

    const v6, -0x99999a

    invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v5

    invoke-virtual {v0, v7}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v6

    const/4 v7, 0x3

    invoke-virtual {v0, v7}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v7

    const/4 v8, 0x5

    invoke-virtual {v0, v8}, Landroid/content/res/TypedArray;->getText(I)Ljava/lang/CharSequence;

    move-result-object v8

    iget-object v9, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    invoke-virtual {v9, v1}, Landroid/widget/EditText;->setTextSize(F)V

    iget-object v9, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    invoke-virtual {v9, v1}, Landroid/widget/EditText;->setTextSize(F)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextSize(F)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->setTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->setTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    invoke-virtual {v1, v4}, Landroid/widget/EditText;->setHintTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    invoke-virtual {v1, v4}, Landroid/widget/EditText;->setHintTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setTextColor(I)V

    if-eqz v6, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    invoke-virtual {v1, v6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    invoke-virtual {v1, v6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz v7, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->b:Landroid/widget/EditText;

    invoke-virtual {v1, v7}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->c:Landroid/widget/EditText;

    invoke-virtual {v1, v7}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    :cond_1
    if-eqz v8, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    :cond_3
    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->w:Ljava/util/List;

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->i:Landroid/widget/LinearLayout;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/io/File;)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03003a

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    const v0, 0x7f0c01b0

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v1, 0x7f0c01b1

    invoke-virtual {v3, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f0c01b2

    invoke-virtual {v3, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    invoke-static {v5, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/view/n;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/view/n;-><init>(Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;)V

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->w:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method public c()Ljava/lang/CharSequence;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public d()Ljava/lang/CharSequence;
    .locals 1

    const-string/jumbo v0, ""

    return-object v0
.end method

.method public e()V
    .locals 3

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->n:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public f()Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    return-object v0
.end method

.method public g()Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    return-object v0
.end method

.method public h()Ljava/lang/String;
    .locals 8

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, ""

    :goto_0
    return-object v0

    :cond_0
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->x:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "url"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->x:Ljava/lang/String;

    invoke-virtual {v2, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :goto_1
    new-instance v3, Lorg/json/JSONArray;

    invoke-direct {v3}, Lorg/json/JSONArray;-><init>()V

    const/4 v0, 0x0

    move v1, v0

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v5, "name"

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v5, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v5, "size"

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v6

    invoke-virtual {v4, v5, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string/jumbo v0, "alias"

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v4, v0, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v3, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_1
    const-string/jumbo v0, "url"

    const-string/jumbo v1, ""

    invoke-virtual {v2, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    const-string/jumbo v0, ""

    goto :goto_0

    :cond_2
    :try_start_1
    const-string/jumbo v0, "data"

    invoke-virtual {v2, v0, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v0

    goto :goto_0
.end method

.method public i()V
    .locals 5

    const/4 v2, 0x0

    new-instance v3, Lorg/json/JSONArray;

    invoke-direct {v3}, Lorg/json/JSONArray;-><init>()V

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    new-instance v0, Lorg/json/JSONArray;

    invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->l()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-nez v1, :cond_4

    :cond_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitcache/f;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->l()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->m()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Ljava/lang/String;Ljava/lang/String;)Z

    :cond_3
    :goto_2
    return-void

    :cond_4
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->l()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->m()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v2, v4, v3, v0}, Lcom/waiqin365/lightapp/visit/c/b;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2
.end method

.method public setBottomLineStatus(Z)V
    .locals 2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->f:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_0
    const/16 v0, 0x8

    goto :goto_0
.end method

.method public setCusFormPrefix(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->x:Ljava/lang/String;

    return-void
.end method

.method public setCusFormValue(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6

    :try_start_0
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2, p2}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v0, v3, :cond_1

    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/io/File;

    invoke-direct {v5, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->a(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :catch_0
    move-exception v0

    :cond_1
    return-void
.end method

.method public setLabel(Ljava/lang/CharSequence;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setLabelColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    return-void
.end method

.method public setLabelSize(F)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextSize(F)V

    return-void
.end method

.method public setMustinput(Ljava/lang/String;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setMustinput(Ljava/lang/String;)V

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->s:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->e:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public setValue(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public setVerShow(Z)V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->a:Z

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->y:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->z:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->t:Landroid/content/Context;

    const/high16 v2, 0x42a00000    # 80.0f

    invoke-static {v1, v2}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->y:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->z:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 3

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/waiqin365/lightapp/view/a/a;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->n:Ljava/lang/String;

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    check-cast p2, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, p2, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashMap;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/util/Observable;->deleteObserver(Ljava/util/Observer;)V

    if-eqz v0, :cond_0

    const-string/jumbo v1, "filePath"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "fileName"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Ljava/io/File;

    const-string/jumbo v2, "filePath"

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->u:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->v:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/fiberhome/upload/c/b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->i()V

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/view/AttachUploadView_vertical;->a(Ljava/io/File;)V

    :cond_0
    return-void
.end method
